package com.sinai.mshab.data.widgets;

import java.util.Date;

import com.sinai.mshab.data.core.DataManager;
import com.sinai.mshab.widgets.DropDownDateComponent;

/**
 * A concrete implementation of {@link DataManager} for the
 * {@link DropDownDateComponent} widget.
 * 
 * @author Arthur Kalmenson
 */
public class DropDownDateComponentDataManager implements
		DataManager<DropDownDateComponent, Date> {

	public Date getData(DropDownDateComponent widget) {
		return widget.getDate();
	}

	public void setData(DropDownDateComponent widget, Date data) {
		widget.setDate(data);
	}
}
